package com.guoxin.chapter3.waitnotify.waitreleaselock;

/**
 * @author guoxin
 * @date 2019年8月22日
 */
public class Service {
	public void testMethod(Object lock) {
		try {
			synchronized (lock) {
				System.out.println("begin wait()");
				lock.wait();
				System.out.println("end wait()");
			}
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
	}
}
